<!--<?php
print <<<EOT
-->
<script type="text/javascript" src="mode/house/js/validate.js"></script>
<script type="text/javascript" src="mode/house/js/setbroker.js"></script>
<form action="{$_viewer->baseurl}" method="post" name="form" onsubmit="return checkForm()">
	<div class="fr w-773">
		<p class="manage-tip">您好[<em>{$_viewer->brokerInfo[realname]}</em>]，您目前属于[<em>{$_viewer->brokerRight[name]}</em>]，每日可以发布出售房源<em>{$_viewer->brokerRight[right][salenum]}</em>套，每日可以发布出租房源<em>{$_viewer->brokerRight[right][hirenum]}</em>套。</p>
		<div class="form">
			<h3 class="field-title">信息设置</h3>
			<ul class="field mb20">
				<li class="item"><label class="label">主营业务类型</label>
					<div class="inputs">
						<ul class="input-list list-w3">
							<li><input type="radio" id="r1" name="business" value="sale" {$_viewer->select_sale} /><label for="r1">二手房</label></li>
							<li><input type="radio" id="r2" name="business" value="hire" {$_viewer->select_hire} /><label for="r2">租房</label></li>
						</ul>
						<span class="tips">店铺优先显示主营业务</span>
					</div>
				</li>
				<li class="item"><label class="label">服务商圈</label>
					<div class="inputs">
						<ul class="input-list list-w3">
<!--
EOT;
$i = 1;
foreach ($_viewer->plate as $key => $value) {
	$check = '';
	in_array($key, $_viewer->brokerInfo['plate']) && $check = 'checked = checked';
print <<<EOT
-->
							<li><input type="checkbox" id="c$i" name="plate[]" onblur="checkLength()" value="$key" $check /><label for="c$i">{$value[name]}</label></li>
<!--
EOT;
$i++;
}print <<<EOT
-->
						</ul>
                        <span class="tips" id="plateTip">最多选择三个</span>
					</div>
				</li>
				<li class="item"><label class="label">所属公司<em class="s1">*</em></label>
					<div class="inputs">
						<input class="input input_wa" onblur="checkCompany(event)" name="company" id="company" value="{$_viewer->brokerInfo[company]}" />
						<span id="companyTip"></span>
					</div>
				</li>
				<li class="item"><label class="label">工作地址<em class="s1">*</em></label>
					<div class="inputs">
						<input class="input input_wa" onblur="checkAddress(event)" name="address" id="address" value="{$_viewer->brokerInfo[address]}" />
						<span id="addressTip"></span>
					</div>
				</li>
				<li class="item"><label class="label">手机号码</label>
					<div class="inputs">
						<input class="input input_wa" onblur="checkPhone(event)" name="phone" id="phone" value="{$_viewer->brokerInfo[phone]}" />
						<span id="phoneTip" class="tips">固定电话与手机号码至少填写一项</span>
					</div>
				</li>
				<li class="item"><label class="label">固定电话</label>
					<div class="inputs">
						<input class="input input_wa" onblur="checkTel(event)" name="tel" id="tel" value="{$_viewer->brokerInfo[tel]}" />
						<span id="telTip" class="tips">固定电话与手机号码至少填写一项</span>
					</div>
				</li>
			</ul>
			<h3 class="field-title mb10">店铺公告</h3>
			<div class="field">
				<textarea class="textareaA" style="width:625px; height:150px;" name="announce">{$_viewer->brokerInfo[announce]}</textarea>
			</div>
			<div class="action">
				<button class="HM-btn" type="submit" onsubmit="return checkForm()">保 存</button>
			</div>
		</div>
	</div>
</form>
<!--
EOT;
?>-->